Comparer Property

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Returns the IComparer<T> used to compare items in this bag.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public IComparer<T> Comparer{ get;}
Visual Basic (Declaration)
Public ReadOnly Property Comparer As IComparer(Of T)
Visual C++
public:
property IComparer<T>^ Comparer {
	IComparer<T>^ get ();
}

Field Value

If the bag was created using a comparer, that comparer is returned. If the bag was created using a comparison delegate, then a comparer equivalent to that delegate is returned. Otherwise the default comparer for T (Comparer<T>.Default) is returned.

See Also